public class Calculator {
    double numberA;
    double numberB;
    public double plus(double numberA,double numberB){
        return numberA+numberB;
    }
    public double minus(double numberA,double numberB){
        return numberA-numberB;
    }
    public double multiplyBy(double numberA,double numberB){
        return numberA*numberB;
    }
    public double divide (double numB,double numberB){
        if(numberB==0)return 0;
        return numberA/numberB;
    }
}
